<template>
	<div id="app">
		<transition name="fade" mode="out-in">
			<keep-alive>
				<router-view  v-if="$route.meta.keepAlive"></router-view> 
			</keep-alive> 
		</transition>
		<transition name="fade" mode="out-in">
			<router-view  v-if="!$route.meta.keepAlive"></router-view> 
		</transition>
		<go-index :show.sync="showIndex" />
	</div>
</template>

<script>
import goIndex from '@/components/goIndex'
export default {
  name: 'App',
  components:{
	goIndex,
  },
   computed:{
      showIndex(){ 
          return this.$store.state.showIndex;
      }
  },
  data(){
	  return {
		//   showIndex:this.$store.state.showIndex
	  }
  },
  created(){
  },
  methods:{ 
  }

}
</script> 